package com.study.demo;

import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;

/**
 * @author pc
 *多实例监听器
 */
public class MutiInstanceTaskListener  implements TaskListener{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void notify(DelegateTask delegateTask) {
		System.out.println("总会签数：" + delegateTask.getVariable("nrOfInstances"));
		//result的值为控制类中taskService.complete(taskId, map)时,map中所设
	}

}
